#ifndef DIALOG_H
#define DIALOG_H

#include <QtGui/QDialog>
#include <correlationmatrix.h>
#include <anatomicaltemplate.h>

namespace Ui {
    class Dialog;
}

class Dialog : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(Dialog)

private slots:
    void on_tableWidget_cellChanged(int row, int column);
    void on_Dialog_accepted();

public:
    explicit Dialog(QWidget *parent = 0);
    virtual ~Dialog();

    void setMatrix(CorrelationMatrix *matr);
    void setAnatomicalTemplate(AnatomicalTemplate* temp);
    CorrelationMatrix* matrix();

protected:
    virtual void changeEvent(QEvent *e);

private:
    void updateView();

    Ui::Dialog *m_ui;
    CorrelationMatrix *cmatrix;
    AnatomicalTemplate *aTemplate;

};

#endif // DIALOG_H
